<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8" />
	<title>商家入驻</title>
	<link type="text/css" th:href="@{/html/css/bootstrap.min.css}" rel="stylesheet" />
</head>
<body>
	<div id="app" class="container" style="margin-top: 10px">
		<form class="form-horizontal col-md-8 col-md-offset-2" th:action="@{/regist/shop}" method="post" enctype="multipart/form-data">
            <legend>店铺申请</legend>
            <div class="form-group">
                <label class="col-md-2 control-label">用户名:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="username" name="username" required="required" placeholder="请输入用户名"  />
                </div>
                <div class="col-md-6 help-block">用户不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">密码:</label>
                <div class="col-md-4">
                    <input type="password" class="form-control" id="password" name="password" required="required" placeholder="请输入密码"  />
                </div>
                <div class="col-md-6 help-block">密码不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">确认密码:</label>
                <div class="col-md-4">
                    <input type="password" class="form-control" id="confirmpassword" name="confirmpassword" required="required" placeholder="请输入密码"  />
                </div>
                <div class="col-md-6 help-block">两次密码保证一致</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">店名:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="stitle" name="stitle" required="required" placeholder="请输入店名"  />
                </div>
                <div class="col-md-6 help-block">店名不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">店主姓名:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="sname" name="sname" required="required" placeholder="请输入店主姓名"  />
                </div>
                <div class="col-md-6 help-block">店主姓名不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">店铺主营:</label>
                <div class="col-md-4">
                    <select class="form-control" id="svalue" name="svalue" required="required">
                    	<option value="">请选择主营类别</option>
                    	<option th:each="dict : ${dicts}" th:value="${dict.dvalue}" th:text="${dict.dvalue}"></option>
                    </select>
                </div>
                <div class="col-md-6 help-block">主营类别不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">传真:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="sfax" name="sfax" required="required" placeholder="请输入传真"  />
                </div>
                <div class="col-md-6 help-block">传真不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">商标:</label>
                <div class="col-md-4">
                    <input type="file" class="form-control" id="logo" name="logo" required="required" placeholder="请上传商标图片"  />
                </div>
                <div class="col-md-6 help-block">商标图片不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">证件照片:</label>
                <div class="col-md-4">
                    <input type="file" class="form-control" id="person" name="person" required="required" placeholder="请上传证件照片"  />
                </div>
                <div class="col-md-6 help-block">证件照片不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">营业执照:</label>
                <div class="col-md-4">
                    <input type="file" class="form-control" id="license" name="license" required="required" placeholder="请上传营业执照图片"  />
                </div>
                <div class="col-md-6 help-block">营业执照图片不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">店铺地址:</label>
                <div class="col-md-4">
                    <textarea class="form-control" id="saddr" name="saddr" required="required" placeholder="请输入店铺地址信息" ></textarea>
                </div>
                <div class="col-md-6 help-block">店铺地址不能为空</div>
            </div>
            <div class="form-group">
                <div class="col-md-4 col-md-offset-2">
                    <button type="submit" class="btn">注册</button>
                    <button type="reset" class="btn">取消</button>
                    <a th:href="@{/home}">返回首页</a>
                </div>
                <div class="col-md-6 help-block" th:text="${message}"></div>
            </div>
        </form>
    </div>
</body>
</html>